home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 3: Developer Tools
/
Linux Cubed Series 3 - Developer Tools.iso
/
devel
/
make
/
icmake-6.000
/
icmake-6
/
icmake
/
exec
/
fungetch.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-02-08
|
477 b
|
32 lines
/*
\funcref{fun\_getch}{void fun\_getch ()}
{}
{}
{}
{fun\_gets()}
{fungetch.c}
{
This function reads in one key and returns it in the {\em reg} return
register as an {\em e\_str} value.
}
*/
#include "icm-exec.h"
void fun_getch ()
{
static char
buf [200];
#ifdef MSDOS
buf [0] = (char) getch ();
#else
gets (buf);
buf [1] = '\0';
#endif
reg = newvar (e_str);
reg.vu.i->ls.str = xstrdup (buf);
}